{extend name="./public/base"/}
{block name="alt"}视频类型{/block}
{block name="alter"}视频类型列表{/block}
{block name="title"}BangBang视频类型{/block}
{block name="main"}<div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-block">
                                <div class="card-body">
                                        <table class="table table-striped  mt-3">
                                            <thead>
                                                <tr>
                                                    <th scope="col"><p class="text-center">状态</p></th>
                                                    <th scope="col"><p class="text-center">视频类型ID</p></th>
                                                    <th scope="col"><p class="text-center">视频类型</p></th>
                                                    <th scope="col"><p class="text-center">类型添加时间</p></th>
                                                    <th scope="col"><p class="text-center">操作</p></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {volist name="types" id="type"}
                                                <tr>
                                                    <td>
                                                        {if condition="$type.tstatus==0"}<p class="text-center text-success">正常</p>
                                                        {else/}<p class="text-center text-danger">封禁</p>
                                                        {/if}
                                                    </td>
                                                    <td><p class="text-center">{$type.tid}</p></td>
                                                
                                                    <td><p class="text-center">{$type.typename}</p></td>
                                                    
                                                    <td><p class="text-center">{$type.typedata}</p></td>
                                                   
                                                    <td class="text-center">
                                                        <a class="text-danger" href="{:url('shield',['tid'=>$type.tid])}"><i class="icon-ban"></i> 解除/封禁</a><br>
                                                        <a class="text-success" href="{:url('update',['tid'=>$type.tid])}"><i class="icon-pencil"></i> 修改类型</a>
                                                       
                                                      </td>
                                                    <td>
                                                </td>
                                                </tr>
                                                {/volist}
                                                
                                                
                                            </tbody>
                                        </table>
                                       
                                </div>
                            </div>
                        </div>
                    </div>
                </div>{/block}
{block name="tan"}
	<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal">添加新的视频类型</button>
	<br>
	<br>
	<!-- 模态框（Modal） -->
               <!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myModalLabel">添加新的视频类型</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form" action="{:url('addtypes')}" method="post">
<div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">视频类型名称</label>
    <div class="col-sm-10">
      <input type="text" name="typename" class="form-control" id="inputPassword" required>
    </div>
  </div>

  <button type="submit" class="btn btn-primary">提交</button>
</form>
            </div>
           
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->
{/block}